package com.zzc.repository;

import com.zzc.domain.Client;
import com.zzc.domain.Staff;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.transaction.annotation.Transactional;

public interface StaffRep extends JpaRepository<Staff,Integer>, JpaSpecificationExecutor<Staff> {

    Staff findByStaffId(int staffId);

    @Modifying
    @Transactional
    void deleteByStaffId(int staffId);

}
